cmake_minimum_required(VERSION 2.4.6)
project(test)
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
Find_package(OpenCV REQUIRED)
include_directories(include/${PROJECT_NAME})
add_library(${PROJECT_NAME} src/grayscale_to_binary.cpp src/rgb_to_grayscale.cpp src/points.cpp src/matrix.cpp src/printing.cpp src/contour_detection.cpp)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${OpenCV_LIBS})
#ADD_EXECUTABLE( tester src/contour_testing.cpp )
ADD_EXECUTABLE( tester src/test.cpp )
TARGET_LINK_LIBRARIES( tester ${PROJECT_NAME} )
#ADD_EXECUTABLE( test_me src/tester.cpp )
#TARGET_LINK_LIBRARIES( test_me ${PROJECT_NAME} )
